#ifndef __GPIO_LED_H__
#define __GPIO_LED_H__

#include "board.h"

#define LEDR_PIN                  87 /* !>R 红色灯 物理引脚*/
#define LEDG_PIN                  88 /* !>G 绿色灯 物理引脚*/
#define LEDB_PIN                  89 /* !>B 蓝色灯 物理引脚*/

#define LEDR_OFF rt_pin_write(LEDR_PIN,1)
#define LEDR_ON  rt_pin_write(LEDR_PIN,0)
#define LEDG_OFF rt_pin_write(LEDG_PIN,1)
#define LEDG_ON  rt_pin_write(LEDG_PIN,0)
#define LEDB_OFF rt_pin_write(LEDB_PIN,1)
#define LEDB_ON  rt_pin_write(LEDB_PIN,0)

#define LED_RED()     LEDR_ON;LEDG_OFF;LEDB_OFF /*!> 红*/
#define LED_GREEN()   LEDR_OFF;LEDG_ON;LEDB_OFF /*!> 绿*/
#define LED_BLUE()    LEDR_OFF;LEDG_OFF;LEDB_ON /*!> 蓝*/
#define LED_YELLOW()  LEDR_ON;LEDG_ON;LEDB_OFF  /*!> 黄*/
#define LED_PURPLE()  LEDR_ON;LEDG_OFF;LEDB_ON  /*!> 紫*/
#define LED_CYAN()    LEDR_OFF;LEDG_ON;LEDB_ON  /*!> 青*/
#define LED_WHITE()   LEDR_ON;LEDG_ON;LEDB_ON   /*!> 白*/
#define LED_RGBOFF()  LEDR_OFF;LEDG_OFF;LEDB_OFF/*!> 黑*/

#define LED_RGB_COLOR_BLUE   (uint32_t)0xFF00FF
#define LED_RGB_COLOR_RED    (uint32_t)0x00FFFF
#define LED_RGB_COLOR_GREEN  (uint32_t)0xFFFF00

       
#endif /* end of include guard: __GPIO_LED_H__ */
